package com.hui.operatelog.service.impl;

import com.hui.operatelog.dao.OperateLogDao;
import com.hui.operatelog.entity.OperateLog;
import com.hui.operatelog.service.OperateLogService;
import com.hui.operatelog.vo.PageVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OperateLogServiceImpl implements OperateLogService {
    @Autowired
    private OperateLogDao logDao;

    @Override
    public boolean insert(OperateLog log) {
        return logDao.insert(log);
    }

    @Override
    public List<OperateLog> list(PageVo params) {
        return logDao.list(params);
    }

    @Override
    public void delete(Integer logId) {
        logDao.delete(logId);
    }
}
